Component({
    properties: {
        select: { // 属性名
            type: String,
            value: '0'
        }
    },

    data: {
        selectColor: "#FFAA00"
    },

    methods: {
        handleGO(e) {
            let select = e.currentTarget.dataset.select;
            if(this.data.select != select){
                if (select == 0) {
                    wx.switchTab({
                        url: '../index/index'
                    })
                } else if (select == 1) {
                    wx.switchTab({
                        url: '../car/car'
                    })
                } else {
                    wx.switchTab({
                        url: '../myself/myself'
                    })
                }
            }
        }
    }
})